This is nonsense. Almost all URL getters are a result of get_option(), eg. get_option('stylesheet_root'), get_option('template') and so on.
These options are loaded very early during the request, they are cached and not fetched again.
Since the options are fetched anyway, all you can improve is processing time. Nanoseconds. This isn’t worth the trouble. Just compare to the time you need when you have t change something in all those files (switching to HTTPS, to a sub-domain, changing permalinks).
Install a good caching plugin. That will improve load time much, much more.
Related Posts:
- Steps to optimize WordPress in regard to server load and website speed?
- Website is slow: advice on optimization
- Speeding Up Bulk Post Creation – wp_insert_post & update_post_meta
- How to properly insert a stylesheet in wp_head
- Using Multiple Queries of “home_url” vs. Calling a Variable Multiple Times
- Could a higher number of registered image sizes affect performance?
- Page taking time in loading. Also used lazy loading but doesn’t work?
- get_the_id, get_the_permalink, and get_the_title all with one DB call
- High traffic management in WP
- admin.php taking 14 seconds
- How to optimize recaptcha__en.js
- How can I optimize my website for improved speed? [closed]
- what does O(N) mean [duplicate]
- Measure the time it takes to execute a t-sql query
- How can you profile a Python script?
- Which Python memory profiler is recommended? [closed]
- What is the difference between spark.sql.shuffle.partitions and spark.default.parallelism?
- Java check if boolean is null
- the asymptotic growth of n choose floor(n/2)
- How well does WordPress scale?
- Slow Query for the wp_options table
- What is the best caching option for WordPress multi-site on non-shared hosting?
- Why is home (a lot) slower than other pages?
- WordPress SLOW, tried everything!
- WordPress so slow to load on MAMP
- Do multiple revisions really slow down WordPress?
- get_adjacent_post alternative on a very large db
- Fastest server stack configuration for WordPress?
- Cache WordPress translations
- Refresh external feeds only in cron?
- What is the proper use of https in a modern E-Commerce environment?
- What are best practices for configuring a server for WordPress sites?
- Utilize WordPress Authentication Only
- WordPress tries to load “next page” after done loading current page
- Performance impact of using functions in WordPress?
- How to solve slow WordPress site caused by attachment_metadata
- Minimal WordPress load for only `get_option` to work (because ajax…)
- Localization / textdomain is slow and chaotic
- WordPress performance issue. Can I debug it?
- What other plugins are there available to track app performance for wordpress?
- Why can’t /wp-login.php be load balanced?
- WordPress Meta description – is it better to use manual configuration?
- Removing translation textdomain
- WordPress site is sloooow, but admin is fast….any ideas?
- Do I manually minify css code in my main theme or child theme?
- Is post_class(); going to slow WordPress page speed
- cross-host benchmarking with wordpress
- Performance problem with first load
- WordPress 3+ slow load times on Ubuntu 10.10
- WP Optimization: Removing Orphaned wp_options (especially the autoload ones)
- I’m designing a plugin to create database indexes. Suggestions?
- How to preload images through Code Snippets wp_head for specific pages?
- TTFB increased for no reason
- Improve performance by removing unnecessary database queries
- Can the page load time depend on incidence of visiting?
- Preload Cache for thousands of posts may be on non-production environment
- Page Loading Issue [closed]
- Is it possible to make WordPress PHP faster through caching or compiling it?
- W3 Total Cache: use cache for request with ignorable query string [closed]
- How to optimize on-the-fly theme switching for mobile browsers?
- Wordress importing scripts
- Server Hardware for WordPress [closed]
- WordPress network vs Separate installs
- How to test site speed?
- Measure WordPress performance on different hosts
- Optimizing function that automatically creates internal links based on post title string
- Performance testing a WordPress site locally?
- wordpress extremely slow on NAS
- Minifing js files with w3 total cache and expiring the combined file [closed]
- Does fixing PHP notices improves website performance?
- How do you make a site load faster when offloading is not an option?
- how to embed Pdf and Video Without effecting page speed?
- Slow issues with Website running WordPress on Azure
- WordPress is very slow, even it’s not opening sometimes
- Write/saved logs in WordPress
- Website slow : my fault or the host?
- Best way of coding a theme with multiple languages in WordPress
- How fast can I expect WordPress to be on a fresh install locally?
- Change loading order of blocks
- get_template_part calls amount and performance?
- Can lots of tags affect performance?
- REST api v2 how can modify respond types and make custom DTO for better performance
- Website is loading twice unnecessarily
- Optimising amount of calls to custom fields
- Why is the server response time slowing my site down? [closed]
- High I/O load when hosting lots of wordpress sites
- How to handle high load of traffic of my server
- How to preload the entire site with javascript?
- How we can reduce wordpress page loading time? [closed]
- How to Aggregate, minify and compress (AMC) static and dynamic resources?
- How to improve my site’s loading time?
- WordPress and TTFB (time to first byte) stats
- What’s a good tool for speed benchmarking? [closed]
- How can we remove “unused”/no long used calls when loading the homepage?
- Are networks now faster than disks?
- How can a single disk in a hardware SATA RAID-10 array bring the entire array to a screeching halt?
- High load average, low CPU usage – why?
- Very long initial loading (20sec)
- Identifying Issues in Pagespeed Insights: Server Response Time and Long Main Thread Tasks
- Page loads but doesn’t often doesn’t render until interacted with