X-Received: by 2002:a24:be49:: with SMTP id i70-v6mr3799096itf.32.1538629516865; Wed, 03 Oct 2018 22:05:16 -0700 (PDT) X-Received: by 2002:aca:4995:: with SMTP id w143-v6mr95584oia.7.1538629516297; Wed, 03 Oct 2018 22:05:16 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!x188-v6no17777ite.0!news-out.google.com!n199-v6ni48itn.0!nntp.google.com!x188-v6no17772ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: de.comp.lang.java Date: Wed, 3 Oct 2018 22:05:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=37.201.212.9; posting-account=VmIUsgkAAABUMV5-gaSlvHjNMDcqojz2 NNTP-Posting-Host: 37.201.212.9 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Bit packed array From: =?UTF-8?Q?Heiner_K=C3=BCcker?= Injection-Date: Thu, 04 Oct 2018 05:05:16 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 45 Xref: csiph.com de.comp.lang.java:13211 Am Montag, 1. Oktober 2018 09:46:50 UTC+2 schrieb Patrick Roemer: > Responding to Heiner K=C3=BCcker: > > http://www.heinerkuecker.de/BitPackedArray.html >=20 > Da ich zumindest derzeit keinen Bedarf an solcher Funktionalit=C3=A4t hab= e > und die Darreichungsform auch eher unbequem finde, habe ich nicht > reingeschaut. Aber interessieren w=C3=BCrde mich schon... > ...wie man zu Unit Tests kommt, die tagelang laufen?! Die Ursache ist die kombinatorische Explosion. public void testFromArrayCopy_All() { for ( int dataElementWidth =3D 1 ; dataElementWidth < Integer.SIZE ; dataE= lementWidth++ ) { for ( int arraySize =3D 1 ; arraySize <=3D 37 ; arraySize++ ) { for ( int srcPos =3D 0 ; srcPos < arraySize ; srcPos++ ) { for ( int dstPos =3D 0 ; dstPos < arraySize ; dstPos++ ) { for ( int length =3D 0 ; length <=3D arraySize &&=20 length <=3D arraySize - srcPos &&=20 length <=3D arraySize - dstPos ;=20 length++ ) { for ( final int[] thisValues :=20 new BitPackedIntArrayArraycopyTestValueIterable(=20 dataElementWidth ,=20 arraySize ) ) { for ( final int[] fromValues :=20 new BitPackedIntArrayArraycopyTestValueIterable(=20 dataElementWidth ,=20 arraySize ) ) { > Viele Gr=C3=BC=C3=9Fe > Patrick Danke Heiner