emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some vars now limited to fixnum size. (Was: Merging bignum to master


From: Richard Stallman
Subject: Re: Some vars now limited to fixnum size. (Was: Merging bignum to master)
Date: Wed, 22 Aug 2018 00:03:05 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > (setq circular (list 1 2))
  > (setcdr (last circular) circular)
  > (setq n (ash 1 61))
  > (nthcdr n bench-circular)

  > On my circa-2010 64-bit desktop with Emacs master, the nthcdr call consumes 
160

How does it do the job so fast?  Does it calculate the length of the
list, then divide?

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]