Giter Club home page Giter Club logo

Comments (3)

IndigoCZ avatar IndigoCZ commented on August 27, 2024

I discovered that when using the lists method, the delay kicks in when I first call a method (column name) on an individual item. I ran that call through the profiler:

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
 10.44     2.84      2.84    15175     0.19     0.51  REXML::Parsers::BaseParser#pull
  6.72     4.67      1.83    14293     0.13     3.13  Hash#each
  4.54     5.91      1.24    18870     0.07     0.73  Array#each
  3.60     6.89      0.98    11210     0.09     0.16  String#snakecase
  3.43     7.82      0.94    46752     0.02     0.02  String#==
  3.08     8.66      0.84    39945     0.02     0.40  Class#new
  2.28     9.28      0.62     9683     0.06     0.09  String#map_soap_response
  1.95     9.81      0.53     8756     0.06     0.68  Array#map
  1.84    10.31      0.50     6633     0.08     0.25  Array#include?
  1.62    10.75      0.44     3796     0.12     1.00  REXMLUtilityNode#initialize
  1.43    11.14      0.39    12836     0.03     0.05  REXML::IOSource#empty?
  1.43    11.53      0.39    10145     0.04     0.05  REXML::Text#unnormalize
  1.38    11.91      0.38      151     2.50    64.98  Crack::XML#parse
  1.38    12.28      0.38    44941     0.01     0.01  MatchData#[]
  1.37    12.66      0.37      459     0.81     2.44  Net::HTTPResponse#each_response_header
  1.36    13.03      0.37    23280     0.02     0.02  Kernel.initialize_dup
  1.31    13.38      0.36     9591     0.04     0.06  REXML::IOSource#readline
  1.26    13.73      0.34    12940     0.03     0.03  String#strip_namespace
  1.21    14.06      0.33    13498     0.02     0.04  REXML::IOSource#match
  1.10    14.36      0.30    52268     0.01     0.01  Symbol#==
  1.08    14.65      0.30     7956     0.04     0.07  Net::NTLM::FieldSet#[]

from activesp.

calamitas avatar calamitas commented on August 27, 2024

The #list method actually returns the list with list_name in the URL, which can be different from the title.

It is kind of annoying that Savon insists on parsing the XML returned by SP with Crack. Crack uses REXML which is very slow. We use Nokogiri because it is faster and is still maintained.

from activesp.

IndigoCZ avatar IndigoCZ commented on August 27, 2024

Is there any chance of Savon switching to something other than Crack?

from activesp.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.