News for hackers. Stuff that matters.
Re:HTTPie – A user-friendly CLI HTTP client by mixmastamyk on Sunday December 01, 2019 @04:24PM (#21677878)
Never experienced slowness with it, what specifically is the problem?
Re:HTTPie – A user-friendly CLI HTTP client by poitrus on Monday December 02, 2019 @02:28PM (#21685898)
Author here: the main driver for writing curlie was not about the slowness of httpie but about all the features I was missing from curl. As curlie is just a wrapper on top of curl, you get all the great options of curl like http/2, http/3 support, advanced TLS options etc.
Re:HTTPie – A user-friendly CLI HTTP client by rochacon on Sunday December 01, 2019 @05:27PM (#21678222)
For one-off runs it doesn't feel slow, but it gets more noticeable if you're running it in a loop or against a server you know is fast (i.e. local Go server), but consider this output as an example (running from an AWS server):

  # time http google.com >/dev/null 2>&1
  real 0m0.337s
  user 0m0.259s
  sys 0m0.036s
  
  # time curlie google.com >/dev/null 2>&1
  real 0m0.042s
  user 0m0.011s
  sys 0m0.005s
  
  # time curl google.com >/dev/null 2>&1
  real 0m0.039s
  user 0m0.009s
  sys 0m0.004s
Re:HTTPie – A user-friendly CLI HTTP client by mixmastamyk on Sunday December 01, 2019 @08:09PM (#21679084)
Ok, sounds like a problem with Python’s startup speed. They have been improving it little by little but not sure how far they’ll get.
Re:HTTPie – A user-friendly CLI HTTP client by mixmastamyk on Sunday December 01, 2019 @08:31PM (#21679195)
One other thing is that httpie is typically an interactive tool. If I were hitting services in a loop I’d just write a Python/requests script to do it rather than bash+httpie.