Home › Forums › ACF PRO › Optimizing Local JSON output by removing defaults › Reply To: Optimizing Local JSON output by removing defaults
I don’t know if it applies, but I don’t think reducing the file size is going to save you more that a millisecond or 4. ACF is using file_get_contents(). I seriously doubt that the size of the file is going to matter much to this function since it’s all happening on the server. According to https://www.raditha.com/wiki/Readfile_vs_include/ it only takes .00564 seconds to read a 1MB file and only .00152 seconds to read a 32KB file.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.