Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Apr 2018 at 15:07 UTC
Updated:
16 May 2018 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
angel.hHere is the patch.
Comment #3
joseph.olstadSeems to make sense, did you get any performance statistics results before and after to share?
What performance gain might we expect?
Comment #4
joseph.olstadI just tested your patch, it seems to work fine. I did not do any profiling on it though, I don't have a test environment with xhprof handy at the moment.
NOTE: for additional performance improvements, please try out this patch as well
#2642764-34: Speed up via shortcutting token file_entity_file_load
Comment #5
joseph.olstadComment #6
joseph.olstadComment #7
joseph.olstadComment #8
joseph.olstadI tested this patch quite a bit, cannot find anything wrong with it. Passes all tests too.
Comment #11
joseph.olstadpushed to 7.x-2.x and 7.x-3.x
thanks @Angel
please review the other performance patch if you can.
#2642764-34: Speed up via shortcutting token file_entity_file_load
Comment #12
joseph.olstad@Angel, did you actually do any performance profiling on this patch? before/after results?
would be nice to know, add some confidence.
Comment #13
angel.h@joseph.olstad Yes, I did but only locally and yes it did show improvement but I did not record it. Today or tomorrow I'll deploy on live and since I have a jMeter recording of before, I'll let you know about the after! Also - thanks for the quick reaction.
Comment #14
joseph.olstadHi Angel.h, if you can also performance profile the other patch also that'd be great.
would be nice to know how much of a change these two patches bring.
here's the other
#2642764-34: Speed up via shortcutting token file_entity_file_load
Comment #15
angel.h@joseph.olstad Just tested the before and after of https://www.drupal.org/files/issues/2018-04-28/file_entity-n2642764-34.p... on a very slow local site where the average load time on 3 pages was 19641 miliseconds and it went down to 13458 miliseconds - a gain of 6183 miliseconds!
Comment #16
joseph.olstadOk, this justifies cutting a release asap.
Thanks!
Comment #17
joseph.olstadOk, thanks, I just cut 7.x-2.21 and 7.x-3.0-beta7
If you can please help review the other pending performance patch, that'd be greatly appreciated.
#2642764-34: Speed up via shortcutting token file_entity_file_load
THANKS!