>>Do you control the page you're grabbing?
>
>Yes
>
>>If so, add a div around what you want to grab.
>
>Ok, I see.
Control over page generation being unclear "coloured" my answer as well. From performance POV there should be no compelling reason for either version: calling such functions in tight loops with last centuries HW was almost totally bottlenecked by internet speeds, not CPU load. Yes, bandwidth has grown stronger than CPU load and you clearly have a much better connection setup than I had - but having no idea on your CPU load distribution and percentage of page builds this functionality is called vs. "normal" page builds you would have to add the non-script-enclosing DIV tags, my SWAG guess would be adding DIV to ease/elevate structure comprehension to HTML level is IAC better compromise.
Should you decide to make the effort to measure, pls. post results: As I have no current expierince in that area, actual data from your end is always welcome. "Still irrelevant" today and in your setup being also a result worth knowing ;-)
regards
thomas
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement