> 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


Reply via email to