6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
12/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13761] Memory usage issues when IMAP sequence range is far apart
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /. . __..__.. . >< | |(__ [__]|__| / \|/\|.__)| || |
Comment
> If the IMAP sequence ID between the earliest and latest messages is > very large it is easy to hit memory limits in PHP specifically in the > Horde/Imap/Client/Ids.php file > Why this large range happens sometimes and not always is odd and I > have a lack of understanding on what it is doing. > > Ive had an issue with one user where the range was over 1m between > min & max and the max memory had to be over 256Mb > > Using SplFixedArray the max memory limit can be reduced to about half > but there are big issues elsewhere as the Spl does not have all the > sort functions that a standard array has. > I am not sure if this can somehow be shoehorned in and made to work > or if its limitations are a problem. > > Another problem is found on line 170, would it not be prudant to > unset each array key as it is populated into the _add array, that way > the memory should not balloon (not sure if PHP optimises for this > anyway). >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers