Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #27646

Re: Why does it slow down for bases above 10?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Why does it slow down for bases above 10?
Date Fri, 15 May 2015 21:41:22 +0100
Organization A noiseless patient Spider
Lines 16
Message-ID <87oall1slp.fsf@bsb.me.uk> (permalink)
References <149684fb-a50c-4a73-ba20-f7f392f1ce5c@googlegroups.com> <bdffa5ba-4192-4112-8a5a-cce6b349aef2@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="4038"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k9c1U6gAxPLUnK6ouTbj/QpJGTkb7vro="
Cancel-Lock sha1:VLs36t0lPD5uTUdOi4FxLYvMKGE= sha1:eJMhiifs0YRdqqXE9c0LKT4yBzA=
X-BSB-Auth 1.17fe670ffde5e37094ed.20150515214122BST.87oall1slp.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:27646

Show key headers only | View raw


jonas.thornvall@gmail.com writes:

> Den fredag 15 maj 2015 kl. 20:58:10 UTC+2 skrev jonas.t...@gmail.com:
>> http://jt.node365.se/baseconversion.html
>
> If someone can point out the bug for base above 10 in my generic
> basechanger it would be great.

That's unlikely.  The code is some of the least inviting I've ever seen.
Global variables all over the place.  Functions that should return
values depositing results into globals instead.  Names that carry little
or no meaning ("loop", "looptwo", "arrCompareTwo").  It's almost
impossible to follow.

-- 
Ben.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-15 11:57 -0700
  Re: Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-15 12:25 -0700
    Re: Why does it slow down for bases above 10? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-15 21:41 +0100
      Re: Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-15 14:20 -0700
      Re: Why does it slow down for bases above 10? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-15 23:21 +0200
        Re: Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-15 14:37 -0700
          Re: Why does it slow down for bases above 10? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-15 23:34 +0100
            Re: Why does it slow down for bases above 10? "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-05-16 01:27 +0200
            Re: Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-16 01:53 -0700
              Re: Why does it slow down for bases above 10? jonas.thornvall@gmail.com - 2015-05-16 02:18 -0700
              Re: Why does it slow down for bases above 10? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-05-16 11:05 +0100
                Re: Why does it slow down for bases above 10? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 17:58 +0200

csiph-web