1
ajaxbr
Barebones theme: CPU hog?
  • 2004/6/14 0:46

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Hello all,
I'm trying to make a minimum bandwidth HTML 4.01 theme and I've found some interesting Smarty functions and modifiers: strip(), strip and regex_replace. With these, it's possible to remove images, "/>"s and extra spaces/line-breaks/tabs in html:
<{$block.content|regex_replace:"/<img.*>/":""|regex_replace:"//>/":">"|strip}>


Together with very little CSS, no xoops.js, footer or header, this can bring some bandwidth saving, but I'm worried that those functions might be CPU intensive . And here's my pledge: could you nice XOOPS people test this theme for loadtimes and CPU stress?

Here's our suspect, known as OldTimes theme.

I'm already setting my own tests up, but a single PIII with 128MB of RAM is hardly a fair sample...

2
ajaxbr
Re: Barebones theme: CPU hog?
  • 2004/6/14 2:17

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


It has some kind of glitch with custom blocks, but you can see it working here. Looks a tad better than default for CSS-less browsers, still have to check it with Lynx.

Login

Who's Online

123 user(s) are online (76 user(s) are browsing Support Forums)


Members: 0


Guests: 123


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits