Custom Query (297 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 297)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#302 wontfix 页面载入初始化优化的建议 moo jonwang
Description

我是多年php的开发者,在开发中经常会遇到一个很烦人的问题就是页面在每次请求的时候都会从第一个代码去初始化,然后程序引入框架,读取配置,再快的php框架也敌不过原生php的速度,而现在这年头写php不管是用开源的还是私有的框架,总得加载很多内容,php就在这些做着重复的事情。而现在绝大部分网站都是一个入口文件

既然这样,xcache能否做到这样的功能? 提供一个方法可以在php的入口index.php的第一行声明启用初始化加速,然后程序在某个地方声明初始化节点完毕。然后xcache会将此时php的内存copy出留作备用,等下一个进程进入时直接把这个内存复制给程序,并且从声明结束处开始下后执行,跳过之前所有代码。 由于是内存的直接复制所以会非常快,这样一个程序就不用反复初始化那些一样的东西了。

不知道明白了么?举个例子: 比如一个我要发100个请帖,如果一个个的写那肯定很慢,那么我写好一个请帖,把被邀请人留空,然后把它扫瞄到电脑上,然后要100个就打印100个,然后把不同的地方填上即可 我的想法就是xcache提供一个声明,将初始化的进程内存缓存下来,然后后面的进程就可以直接复制内存后直接跳过所有的步骤。

如果这个实现了那就牛叉了,我们可以把要include的所有的文件、需要数据库读取的配置等等不变东西的都放在声明里,那样再也不会有人嫌弃框架没有原生的php快了。只要一个初始化加速几乎可以颠覆整个php优化了,那样php就像是一个常驻内存的‘短进程’了

#301 fixed Xcache 3.0.1 / PHP 5.4.13 Apache Child dies moo r.goerner
Description

Running Apache from Debian .deb with compiled PHP 5.4.13 and Xcache 3.0.1 effects this:

[Sun Mar 24 10:15:12 2013] [error] child died with signal 11 [Sun Mar 24 10:15:59 2013] [error] child died with signal 11 [Sun Mar 24 10:15:59 2013] [error] child died with signal 11 [Sun Mar 24 10:16:00 2013] [error] child died with signal 11 [Sun Mar 24 10:16:02 2013] [error] child died with signal 11 [Sun Mar 24 10:16:03 2013] [error] child died with signal 11 [Sun Mar 24 10:16:35 2013] [error] child died with signal 11

Apache dies. With 3.0.0 all runs fine.

#300 wontfix Error on PHP files containing multiple namespaces when XCache is enabled moo adrienlabelle
Description

This was first reported over there: https://github.com/nrk/predis/issues/80 but it seems to be a problem with XCache, not this specific library.

If I enable xcache on my apache server, Predis throws the following error: "Fatal error: Class 'Predis\CommunicationException?' not found in..."

I am using the one-file version of Predis (not really my choice, the application I use Predis with is a bit rigid). It should be noted this has been reproduced on two different machines. Disabling XCache as an extension or disabling the caching engine fix the issue.

The issue is present in XCache 3.0.1 too.

PHP version:

PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with XCache v1.3.2, Copyright (c) 2005-2011, by mOo

OS: Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise

Apache: Server version: Apache/2.2.22 (Ubuntu) Server built: Feb 13 2012 01:51:50

Predis Client version is 0.7.4-dev

Thank you very much for your time.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.