SneakyDave
Well-known member
I'm using that one too for the eBay Partner Network. Any chance that you could make a parser for that as well? I know there's another one here but it only parses after the fact, I like the way that yours is coded.
I'm looking into it. I have to do more investigation on whether to create a separate one, or include it with this one.
This looks extremely useful but your examples adds 0.7 seconds to the page load. Isn't that quite significant?
That .7 additional seconds is to parse 1000 amazon links on a page, so yeah, there is a difference, but nobody's going to have 1000 Amazon links on a page, with debug on. It may actually be faster now, as 90% of users will only have 1 Amazon affiliate account, and the add-on won't do any extra work if the url doesn't have "amazon." in it, and affiliates are only added to country codes the admin is participating in.
In a more real world example, but probably still more that usual, 10 links on a page gave me these numbers, no other addons, with debug on, and link proxying on:
No Addon
Timing: 0.3625 seconds Memory: 9.547 MB DB Queries: 10
With addon:
Timing 0.3782 seconds Memory: 9.432 MB DB Queries: 10
So, not an exact science (localhost machine, not cache configured, etc.), but for 10 links on a page, expect a .0160 second increase in page load(?). Not sure why the memory usage would be lower with the add-on installed, but I'm sure there's some xf caching or other mechanisms, or crons running that affect that.
Last edited: