C Extension on Windows Seven ?

222 views
Skip to first unread message

Vodnok

unread,
Mar 10, 2011, 4:15:56 AM3/10/11
to phpc...@googlegroups.com
Hi,

I would like to use C Extension on Windows Seven. 


How can i do that

cd thrift/ext/thrift_protocol
phpize
./configure
make
sudo make install


on windows ? 


Thank you,

Vodnok, 

Sasha Dolgy

unread,
Mar 10, 2011, 4:21:06 AM3/10/11
to phpc...@googlegroups.com, Vodnok
I don't think you can....

Vodnok

unread,
Mar 10, 2011, 4:32:39 AM3/10/11
to phpc...@googlegroups.com, Vodnok
Arf.... Impossible to make a dll from ext/thrift_protocol ?

I would like to know about performance expected with and without C Extension.

Karl Hiramoto

unread,
Mar 10, 2011, 4:57:38 AM3/10/11
to phpc...@googlegroups.com, Vodnok

Vodnok

unread,
Mar 10, 2011, 5:14:04 AM3/10/11
to phpc...@googlegroups.com, Vodnok
Thank you


It's very strange making a memcached Vs Cassandra bench.

Few dayx ago i had memcache 15% faster  than cassandra and now i have memcache a lot more faster

Getting one row :

memcached : 0.004sec
cassandra : 0.06sec


Getting 1000X 1 row :

memcached : 2sec
cassandra : 23sec


I don't know if it's coming from phpcassa or cassandra. It's a small CF (30k rows) with rows_cached=100000 and keys_cached=100000. So i don't understand why. Dont know if this issue is in phpcassa, cassandra or jvm level.

Sasha Dolgy

unread,
Mar 10, 2011, 5:15:56 AM3/10/11
to phpc...@googlegroups.com
Vodnok,

If you get one working, please share... : )

-sd

Vodnok

unread,
Mar 11, 2011, 10:58:55 AM3/11/11
to phpc...@googlegroups.com
3 hours on it... I think is to hard for me

Strating with this stepbystep : http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions

When using php_thrift_protocol.cpp it explode ;-) It's frustrating because of phpcassa poor performance and because i don't know if it's phpcassa guilty.


Any idea of how benchmarking and detecting from where i'm loosing time ? 100ms for getting a row is very poor !!!

jvm -> Cassandra -> phpcassa





Sasha Dolgy

unread,
Mar 11, 2011, 11:04:43 AM3/11/11
to phpc...@googlegroups.com

Hi...i dont have problems with phpcassa on windows or unix to this degree.  mindyou, i am not using the thrift extension yet....i see a new thrift version is out.

Vodnok

unread,
Mar 11, 2011, 11:07:29 AM3/11/11
to phpc...@googlegroups.com
And for info, how many time in ms to get a row by id ?

Vodnok

unread,
Mar 28, 2011, 3:08:58 AM3/28/11
to phpc...@googlegroups.com
Hi,

Just to inform you that i finally compile thrift to a .dll and performance are improved. I was forced to switch to a php vc9.vc6 isn't anymore supported by php.

Average acces was pretty bad before (70-100ms) by row and now it's 5-10ms. So nearly 10X faster cause by .dll and maybe vc9.

So it's good news... but 10ms is no really good performance compare to mysql or memcached on insert. So i'll make new test on a virtual machine (XP) to see Windows Seven impact.


Question : I used the trunk in Thrift project not the Thrift ext in phpcassa release.Is it better using the phpcassa thrift ?

Thank you,

Vodnok




Tyler Hobbs

unread,
Mar 28, 2011, 10:45:43 AM3/28/11
to phpc...@googlegroups.com
Question : I used the trunk in Thrift project not the Thrift ext in phpcassa release.Is it better using the phpcassa thrift ?

Thrift trunk should be fine to use now.  It should basically be identical to the Thrift code that ships with phpcassa.

--
Tyler Hobbs
Software Engineer, DataStax
Maintainer of the pycassa Cassandra Python client library

Tristan Vien

unread,
Jun 24, 2014, 10:13:39 AM6/24/14
to phpc...@googlegroups.com
Hi Vodnok,

Could you please show me how you compile phpcassa into dll on windows ?

Thank you.
Reply all
Reply to author
Forward
0 new messages