Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 25th, 2006, 12:52 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
We're waiting on you to write it for us .
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 25th, 2006, 11:29 PM   #12
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
No thanks. I'll just scuttle back over to my corner, hide under my box, and keep toying with Python.

I've decided to be ignorant to what the industry declares is "hip". One of these days, people will stop overating PHP, and become more informed of the alternatives! ONE OF THESE DAYS!!

*raises his fists to the sky* STEEEEEEEELAAAAAAAAA!!!!

...
Sane is offline   Reply With Quote
Old Jul 26th, 2006, 3:21 AM   #13
Godmode
Newbie
 
Join Date: Jun 2005
Posts: 13
Rep Power: 0 Godmode is on a distinguished road
.

Well, I don't know about php's sessions.. Maybe there's no way you can control ram.. But e.g. I have own session system which uses MySQL, and MySQL RAM preferences you can control. Mainly SQL uses RAM smartly enought so you don't have to even pay attention to such things. That's one way you could do it.
Godmode is offline   Reply With Quote
Old Oct 20th, 2006, 1:45 PM   #14
jsilver608
Newbie
 
Join Date: Oct 2006
Posts: 20
Rep Power: 0 jsilver608 is on a distinguished road
yes, this is possible.

You could use message queues or shared memory, both are supported by PHP (only on *nix systems though).

you could even use shared memory in php and access that same piece of memory from another program.

Details here: http://us2.php.net/manual/en/ref.sem.php
Tutorial: http://www.onlamp.com/pub/a/php/2004...ed_memory.html

and to respond to this: "Since PHP can not do this, it's limiting a lot of potential speed ups in efficiency. PHP could get nowhere near the speed of Python+CherryPy in some situations."

This may be true, but shared memory doesn't scale very well. For high performance, it's best to use something like memcached (slashdot and livejournals use it to scale their sites to many different servers).

Link: http://www.danga.com/memcached/
__________________
High Performance PHP
http://www.whenpenguinsattack.com
jsilver608 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use the new keyword in C++? titaniumdecoy C++ 28 Mar 16th, 2006 12:36 PM
Dynamic memory - variables darkone916 C++ 4 Dec 7th, 2005 6:24 AM
Which area of memory does new use? aznluvsmc C++ 11 Nov 5th, 2005 7:37 AM
Pointers in C (Part II) Stack Overflow C 2 Apr 29th, 2005 10:39 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 7:03 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC