Python Forum
print a list strings is fast but printing the joined strings is slow
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print a list strings is fast but printing the joined strings is slow
#10
(Aug-26-2019, 07:43 PM)snippsat Wrote:
(Aug-26-2019, 07:22 PM)Skaperen Wrote: it must be some terminal issue.
As i try to explain never use print() when measure code,if do can get result that can vary a lot depend on what use Terminal/Editor or OS.
i wasn't trying to measure it until the funny timing happen. i still don't know why that kind of difference affects the terminal program like that. it's strange. but, apparently, not a python issue.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: print a list strings is fast but printing the joined strings is slow - by Skaperen - Aug-26-2019, 07:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Mapped Strings edualfaia 12 2,384 Sep-04-2023, 11:08 AM
Last Post: snippsat
Question bytes and strings Skaperen 0 831 Aug-28-2023, 02:58 AM
Last Post: Skaperen
  f-strings round float down too much Skaperen 5 2,716 Dec-29-2021, 08:37 PM
Last Post: Skaperen
  f-strings in a script to be made public Skaperen 2 2,219 Jan-03-2020, 06:03 PM
Last Post: Skaperen
  supporting both strings and bytes in functions Skaperen 0 1,481 Nov-28-2019, 03:17 PM
Last Post: Skaperen
  side effects in f-strings Skaperen 0 1,726 Sep-08-2019, 01:26 AM
Last Post: Skaperen
  trying to learn f-strings - puzzled by format() protocol Skaperen 7 3,861 Jul-26-2019, 08:40 PM
Last Post: Skaperen
  mixing bytes with strings Skaperen 3 2,514 May-29-2019, 02:30 AM
Last Post: heiner55
  to strings or to bytes, that is the question Skaperen 0 2,100 Jul-07-2018, 08:35 PM
Last Post: Skaperen
  mutable strings Skaperen 3 3,623 Dec-03-2017, 03:05 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020