Re: Idea of pregenerating notes
| From: | Mehdi | Date: | Fri, 22 Aug 2003 16:30:48 +0000 |
| Subject: | Re: Idea of pregenerating notes | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969356075@lists.php.net to get a copy of this message | ||
> Hello!
Hi,
> 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.
-1 for using pre-generated notes. Next time we want to change the layout
of the notes, what will we do ? let PHP work on fly ;)
didou