SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Rewrite board permission reports to use less memory

Open live627 opened this issue 4 years ago • 2 comments

  • A side effect is more speed which is expected because memory allocations are slow.
  • This retains the same behavior which duplicates permission profiles for the sake of showing one table per board. Should these be grouped?
  • The template with the file pointer uses 20 fewer MB than the one with the echo statements—74 MB vs 92 MB—in my test (previous code swallowed over 500 MB)
  • Fixes #7142

live627 avatar Nov 25 '21 03:11 live627

Updated code: 425k, 2.5 s to get that and 170,000 ms to load the page. fwrites code: 394kb, 9s to get all that. 230,000 ms to load the page.

The updated code I think is the best, the fwrites had my browser running some cpu for a bit. not sure why.

jdarwood007 avatar Nov 27 '21 18:11 jdarwood007

Any updates on this, @live627? I would like to get this fixed as soon as we can.

Sesquipedalian avatar Apr 04 '22 18:04 Sesquipedalian