Branch: Tag:

2000-11-27

2000-11-27 14:09:15 by Per Hedbor <ph@opera.com>

Dumping system reworked somewhat. No files are compiled during normal Roxen startup any more. Shaved .5 seconds of boot time on lain (now down to 0.9 seconds)

Rev: server/base_server/configuration.pike:1.399
Rev: server/base_server/fonts.pike:1.65
Rev: server/base_server/roxen.pike:1.582
Rev: server/etc/roxen_master.pike:1.108
Rev: server/languages/catala.pike:1.10
Rev: server/languages/croatian.pike:1.10
Rev: server/languages/czech.pike:1.16
Rev: server/languages/dutch.pike:1.9
Rev: server/languages/english.pike:1.13
Rev: server/languages/finnish.pike:1.8
Rev: server/languages/french.pike:1.11
Rev: server/languages/german.pike:1.10
Rev: server/languages/hungarian.pike:1.6
Rev: server/languages/italian.pike:1.12
Rev: server/languages/japanese.pike:1.17
Rev: server/languages/maori.pike:1.8
Rev: server/languages/norwegian.pike:1.9
Rev: server/languages/polish.pike:1.7
Rev: server/languages/portuguese.pike:1.10
Rev: server/languages/russian.pike:1.8
Rev: server/languages/serbian.pike:1.9
Rev: server/languages/slovenian.pike:1.15
Rev: server/languages/spanish.pike:1.9
Rev: server/languages/swedish.pike:1.16

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.398 2000/11/24 15:52:02 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.399 2000/11/27 14:09:10 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1965:       failed_urls = ({ });    +  int st = gethrtime();    foreach( (query( "URLs" )-registered_urls), string url )    if( roxen.register_url( url, this_object() ) )    registered_urls += ({ url });    else    failed_urls += ({ url }); -  +     if( !datacache )    datacache = DataCache( );    else
2818:   static void create(string config)   {    name=config; -  + // int st = gethrtime();    roxen.add_permission( "Site:"+config, LOC_C(306,"Site")+": "+config );       // for now only theese two. In the future there might be more variables.
3110:       definvisvar( "no_delayed_load", 0, TYPE_FLAG|VAR_PUBLIC );    + // werror("[defvar: %.1fms] ", (gethrtime()-st)/1000.0 ); + // st = gethrtime();    setvars( retrieve("spider#0", this_object()) );    -  + // werror("[restore: %.1fms] ", (gethrtime()-st)/1000.0 );    if (query("throttle"))    {    throttler=.throttler();