Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace LWP::UserAgent with WWW::Curl::Easy (faster http client) #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

towhans
Copy link

@towhans towhans commented Mar 15, 2011

I replaced LWP::UserAgent with WWW::Curl::Easy. Retrieving 1000 documents from DB now takes 3.3 seconds whereas with LWP it took 6.3 seconds (4GB RAM, 4 cores, 32bit Fedora).

I also changed the behavior of dbExists method which is now much faster when there is 20+ dbs in Couch because it does not load the complete database list.

towhans and others added 4 commits March 16, 2011 00:03
- there IS a difference between $a = 3; and $a = "3"; even though undetectable by regexp
- this patch has been used in production for months
- as of now the original couchdb-client by maverick still has this wrong
- encode_json is the fastest stable serialization method in Perl
- example: now it's possible to query view with params ?key=[3,"3"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant