rickysarraf / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Max page size option #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Feature suggestion: an option to not do automatic ("on page load") replacements 
on very large pages, with length settable by the user. Very long pages, 
especially when the pattern to find is short, cause foxreplace to hang and to 
use tremendous amounts of memory. For instance, I have an auto-replace that 
replaces smart quotes with dumb quotes (and similar things; em-dashes with 
double hyphens, etc.) -- trying to access 
https://github.com/majutsushi/nethack/blob/master/nh343-nao.diff with this rule 
active caused Firefox to hang for three full minutes before I got fed up and 
killed it.

Original issue reported on code.google.com by Zze...@gmail.com on 10 Dec 2013 at 8:07

GoogleCodeExporter commented 9 years ago

Original comment by marc.r...@gmail.com on 11 Dec 2013 at 10:31

GoogleCodeExporter commented 9 years ago
The situation is worse than this.

Large pages (or long substitution lists) can make FoxReplace either 
(1) complete but not with all substitutions executed
(2) hang indefinitely (while hogging resources) or
(3) crashing

To be fair, I am talking about a *huge* file and/or a *huge* substitution list. 
You can test the limits via the files at http://jo.koan.net/foxreplace (file 
names and explanation in the screenshot png should be enough but let me know if 
it does not make sense).

Am using FireFox 26.0

Original comment by sqgl2...@gmail.com on 26 Dec 2013 at 3:02

GoogleCodeExporter commented 9 years ago
Related to issue 126.

Original comment by marc.r...@gmail.com on 26 Dec 2013 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by marc.r...@gmail.com on 2 Jun 2014 at 9:04