Idea of pregenerating notes
| From: | Heilig \(Cece\) Szabolcs | Date: | Fri, 22 Aug 2003 12:10:20 +0000 |
| Subject: | Idea of pregenerating notes | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969356065@lists.php.net to get a copy of this message | ||
Hello!
Based on the idea of Goba, i did some measurement on user notes.
Goba's idea is:
We can save resources if we pregenerate formatted notes,
and stores that content instead the raw notes. At this
time every note requires a preg_replace, and a highlight_php()
filter. If we move clean_note() from phpweb to rsync.php.net's
update-user-notes, we can store pregenerated notes.
Bat these savings comes with user notes size growing.
I made a little script to demonstrate this size difference.
It can be checked at: http://phphost.hu/notes/
At this time, modified notes requires about 85% more diskspace
(~6.5 MB). This size difference can be increase if more
notes gets colorized.
So, the question is: what is better...
- Leave everything uncanged, and let PHP to do modifications
(preg_replace, highlighting) on the fly.
- Change update-user-notes to send pregenerated notes to
mirrors, and save processor resources on all the
phpweb mirrors.
Is anyone against that modification?
Cece