switfter fox cares less

hello,
foxyproxy seems to be lagging firefox a little bit when browsing some bloat sites.
especially when there is a whole bounch of redirections, and external contents.
i guess it may have something to do with foxyproxy's proxy patterns.

it would be rather wired if someone would access different pages
on the same site/host with different proxies,
though a few people might need patterns to match content's pathes beyond hostnames.

If patterns are only applied to host names (eg, like the one in http requests),
they may no longer be complicated. At least forward-slashed will dissapper in patterns.
( this helps to eliminate the case, in which www.un.org does not match *un.org/* )
and it may speed up the pattern matching process.

i suggest foxyproxy restrict pattern matching to host names only.
and if that seriously limited foxyproxy's power,
an extra content type(like the ones defiend in nsIContentPolicy ) condition may help.
this enables people to distribute different objects/js/images/css requests to different proxies or unproxy them,
and keep the main proxy(for web) at ease, when browsing multi tabs.

this idea might not make everybody happy, or even be proved usefully.
but as more features are being added to foxyproxy,
speed will surely be a issuse in the future, please help the fox stay slim and graceful :)

This is an excellent point.

This is an excellent point. I will begin working on an alternative (simple) way to define patterns that include all subdomains and pages of a domain. I think maybe switching to AdBlock's style of patterns will make processing faster. But right now, you should only see degradation in performance if you have many, many patterns.

hello eric yah, i have many

hello eric
yah, i have many patterns for a list of site that i would like to go through a proxy.

this one may be another good reference.
https://addons.mozilla.org/en-US/firefox/addon/5230

its rules are defined here :
http://trac.arantius.com/wiki/Support/KarmaBlocker/Configuration

it is definately samller and works faster than adblock. maybe you will like it too.

KarmaBlocks is a very

KarmaBlocks is a very interesting addon. Thanks for the info. However, I don't see how its pattern-processing can be faster than FoxyProxy's because it still uses regular expression. From the link you provided:

Matches =~ Applies a regular expression (regex) to the field. The regex should be expressed as a string. For those who know JavaScript: his string is passed directly to the new RegExp() constructor. For everyone else: this means that you do '''not''' need to backslash-escape forward slashes. Otherwise, this is a standard regex expressed as a string, with all the capabilities of Mozilla's engine.

Maybe you are thinking of Starts-with and Ends-with? Those would be faster than regular expressions, providing you only used those and not reg exps.

i'm curious--how many patterns do you have per proxy??

Eric

Hello Eric, I have

Hello Eric,
I have 40+(increasing) for one local proxy(i am inside a edu network, i use proxyhunter to capture and switch proxies) to enable myself to visit foreign sites like youtube, cnn, nytimes, and yours freely... ~10 for a internal proxy to visit my department sites when i am home.

oh as to the karma thing i just mean it's idea maybe better that adblocks, for it use score system to detect ads, in that way it use less rules to block more ads. and i like its cutoff value. a proper sequence of the rules with reasonable cutoff values helps to speed up socring.
I think thats a great idea. Just a comparison with ad block, and that's all =)

does it has anything to do with foxy?
... umm can you brrow code like the host extraction part from it,
maybe that would save your precious time? i dont know.

oh, one more idea:
can foxyproxy adjuest the pattern sequence according to their frequency of being trigged?

now i am finding more sites being blocked. if foxy can run faster,
maybe in the future i will write myself a little program to syncronize my pattern list with others through LAN=)

regards,

Thanks for the awesome

Thanks for the awesome ideas. I have recorded them and will start work on some as soon as possible.