Advertisement:

Author Topic: Stop ‘Osclass Project’ dying  (Read 6526 times)

Web-Media

  • Sr. Member
  • ****
  • Posts: 459
  • Web
Re: Stop ‘Osclass Project’ dying
« Reply #165 on: September 07, 2019, 01:17:30 am »
Same database 25000 items,  same preferences,  same categories same theme
Apache bench
$ ab -n 100 -c 10 osclass.380 is 3x slower (to be kind)on every page tested
Thanks god i haven't  added any dynamic custom page in osclass . page content is loaded in each request even only a link is displayed in footer ,memory reach the sky
And a big issue is html purifier  it's like a tank send to pick roses (integers ,small strings ),cannot be customized in core (only default config) ,same config loaded again and again on each purify action even is the same one . (Can be done in init param function once  if no customizatiom provided)
And the list of core programming  issues is long,very long and not tackled by osclass team for years .. just when juan ramon (older members remember him)has gone osclass stopped real  development.. a lots of years ago ,just cosmetics now
Code: [Select]
static private function _purify($value, $xss_check)
{ if( !$xss_check ) { return $value; }
self::$_config = HTMLPurifier_Config::createDefault();
 self::$_config->set('HTML.Allowed', '');
self::$_config->set('Cache.SerializerPath', osc_uploads_path()); if( !isset(self::$_purifier) ) { self::$_purifier = new HTMLPurifier(self::$_config); }
I'm not talking about cosmetics .. but rewrite the script  from top to bottom
« Last Edit: September 07, 2019, 01:31:09 am by Web-Media »

Dimal

  • Full Member
  • ***
  • Posts: 135
Re: Stop ‘Osclass Project’ dying
« Reply #166 on: September 07, 2019, 01:49:08 am »
@web-media

Looks like a huge project this one of yours, especially for one person.

Anyways, good luck in that.


Web-Media

  • Sr. Member
  • ****
  • Posts: 459
  • Web
Re: Stop ‘Osclass Project’ dying
« Reply #167 on: September 07, 2019, 04:02:12 am »
It's my house pet for years. But yes it's big  . My first thought was to upload it on github to seek help but it's changing a lot from one day to another ,testing , making breaking changes,testing again , moving functions  from file to file, grouping functions  into   new classes adding new functions , new classes
Example for  the new caching class i've gathered all known cache  libaries and tested  to see who perform better who has better support what's the features of each one , solved issues on github , merging libraries and so on
Importing laravel into osclass,  test .. no its too big .. drop laravel  importing symfony .. no .. over-engineered ,drop it and start from scratch.
Phpfast cache ? No .. will bring extra 3.5 mb  when can be done with 0.4
 My idea of Filecache
      By Language (en_Us, fr_fr ....)
        By group (core, pages,items,user...)
          Split keys into  directories (faster read)
             Key (md5 (page_name)
 Folder structure will be
 en_us/pages/key[01]/key[23]/key
Stampede protection
Also valid for redis-over-engineered-apc... sqlite
Etc etc
So developers .. please bring your contribution
modify a class  for some performance gain (features)
Upload to github (for a simple dropin into osclass core for testing)
Write a forum post
 Let's talk
Don't be crazy like me   ;)

Web-Media

  • Sr. Member
  • ****
  • Posts: 459
  • Web
Re: Stop ‘Osclass Project’ dying
« Reply #168 on: September 07, 2019, 09:53:39 am »
Ps : if i've made that amount of changes in 2 months working from time to time ( 2 hours/day ,2-3 days a week ,fighting with my 1 year son over the keyboard on who writes more code),image osclass core team lack of interest in updating osclass

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1716
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Stop ‘Osclass Project’ dying
« Reply #169 on: September 07, 2019, 09:57:41 am »
I admire your desire, but still, it's huge work. What do you think about phalcon? It is the fastest php framework.

Web-Media

  • Sr. Member
  • ****
  • Posts: 459
  • Web
Re: Stop ‘Osclass Project’ dying
« Reply #170 on: September 07, 2019, 02:15:45 pm »
Not by this benchmark
Code: [Select]
https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=fortune
Siler
Kumbiaphp
Ubiquity i think is ahead  too
But phalcon is  run by a pro team .. good framework to work with