{"action":"created","issue":{"url":"https://api.github.com/repos/dgilland/pydash/issues/58","labels_url":"https://api.github.com/repos/dgilland/pydash/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dgilland/pydash/issues/58/comments","events_url":"https://api.github.com/repos/dgilland/pydash/issues/58/events","html_url":"https://github.com/dgilland/pydash/issues/58","id":101065054,"number":58,"title":"Just Curious: Why so slow?","user":{"login":"jacobbridges","id":8033168,"avatar_url":"https://avatars.githubusercontent.com/u/8033168?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobbridges","html_url":"https://github.com/jacobbridges","followers_url":"https://api.github.com/users/jacobbridges/followers","following_url":"https://api.github.com/users/jacobbridges/following{/other_user}","gists_url":"https://api.github.com/users/jacobbridges/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobbridges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobbridges/subscriptions","organizations_url":"https://api.github.com/users/jacobbridges/orgs","repos_url":"https://api.github.com/users/jacobbridges/repos","events_url":"https://api.github.com/users/jacobbridges/events{/privacy}","received_events_url":"https://api.github.com/users/jacobbridges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-14T17:50:44Z","updated_at":"2015-08-21T14:23:58Z","closed_at":null,"body":"As a precursor to my question: I'm not here to cast doubt upon the usefulness of this project or the adequacy of those who have worked on it. In truth I am very impressed by this project and when I first discovered it I began using it in most of my projects! (I do lots of data mining, so a library such as this is priceless.)\r\n\r\nBut I noticed recently that some of the functions in Pydash are very slow compared to their Python counterparts. For instance consider the following code: \r\n\r\n```\r\nfrom pydash import filter_\r\n\r\nIn [.]: x = [{'a': 1, 'b': 2, 'c': 3}, {'a': 2, 'b': 3, 'c': 4}]\r\nIn [.]: %timeit filter_(x, {'a': 1})\r\n10000 loops, best of 3: 62.1 µs per loop\r\n\r\nIn [.]: %timeit filter(lambda y: y['a'] is 1, x)\r\n1000000 loops, best of 3: 417 ns per loop\r\n``` \r\n\r\nNow in truth I would never expect the Pydash equivalent functions to be *faster* than the Python counterpart, but *~150x slower*?\r\n\r\nAny idea how the speed of these functions could be improved? Since I made this performance discovery I've stopped using the pydash library so much and went back to filter + lambda...but goodness that can get ugly! I love the idea of this library, I just wished performance was better."},"comment":{"url":"https://api.github.com/repos/dgilland/pydash/issues/comments/133441297","html_url":"https://github.com/dgilland/pydash/issues/58#issuecomment-133441297","issue_url":"https://api.github.com/repos/dgilland/pydash/issues/58","id":133441297,"user":{"login":"dgilland","id":1251349,"avatar_url":"https://avatars.githubusercontent.com/u/1251349?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilland","html_url":"https://github.com/dgilland","followers_url":"https://api.github.com/users/dgilland/followers","following_url":"https://api.github.com/users/dgilland/following{/other_user}","gists_url":"https://api.github.com/users/dgilland/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilland/subscriptions","organizations_url":"https://api.github.com/users/dgilland/orgs","repos_url":"https://api.github.com/users/dgilland/repos","events_url":"https://api.github.com/users/dgilland/events{/privacy}","received_events_url":"https://api.github.com/users/dgilland/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T14:23:58Z","updated_at":"2015-08-21T14:23:58Z","body":"Ah, that's interesting. No worries then. What you're doing should work just fine."}}