Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Why does it slow down for bases above 10? Date: Sat, 16 May 2015 01:27:54 +0200 Organization: solani.org Lines: 22 Message-ID: References: <149684fb-a50c-4a73-ba20-f7f392f1ce5c@googlegroups.com> <87oall1slp.fsf@bsb.me.uk> <2805604.EO7ul1Ts0Q@PointedEars.de> <877fs91ndu.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1431732464 8151 eJwFwQkRwEAIBDBL/BQ5cDvrX0KT9NJ6HZUVyaSqXMvATTQ+xkir7fg+oG9p5rUIDHFPuD8GHxFI (15 May 2015 23:27:44 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 15 May 2015 23:27:44 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-User-ID: eJwNy8kBwDAIA7CVQsEQximH9x+h1V9QF+8whxsItu21Vb+zk0cPgOcwCtbyKquY7BCm2vxhPh3nEW4= In-Reply-To: <877fs91ndu.fsf@bsb.me.uk> Cancel-Lock: sha1:Dy3PNIIEhw6Ngy+OyZ1QzBz/YnI= X-NNTP-Posting-Host: eJwNycEBwCAIA8CVpEKo4wQw+4/Q3vdiw9DpCHgotHsZiaFo3s3/rOe+OvVAEE/WsrpruiadH0A6Epo= Xref: csiph.com comp.lang.javascript:27653 Ben Bacarisse wrote: > jonas.thornvall@gmail.com writes: > >> I was concentrated on get it to work, and i am partially >> there. Optimization would rather be to implement the search for >> digitplace rather than, make the code wonderful. >> >> Fixing details can always be done when something working, or partially >> working. > > Generations of programmers have found that this approach does not work. > You have to get the right structure to stat with or the program just > gets more and more impenetrable as it develops. I may add that this particular problem would be easily amenable to unit tests, if it were solved appropriately, what would help to avoid regression bugs during further development. -- Christoph M. Becker