Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3261#discussion_r20344792
  
    --- Diff: python/pyspark/mllib/recommendation.py ---
    @@ -23,6 +23,16 @@
     
     
     class Rating(object):
    --- End diff --
    
    Also saw a result on performance: 
http://stackoverflow.com/questions/2646157/what-is-the-fastest-to-access-struct-like-object-in-python
    
    ~~~
    namedtuple.a  :  0.473686933517 
    namedtuple[0] :  0.180409193039
    struct.a      :  0.180846214294
    struct[0]     :  1.32191514969
    ~~~


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to