Article View: pl.comp.lang.java
Article #154220Re: Tablica int a tablica Integerów
From: Borneq
Date: Thu, 16 Jul 2015 08:16
Date: Thu, 16 Jul 2015 08:16
9 lines
1383 bytes
1383 bytes
W dniu 2015-07-16 o 09:50, Borneq pisze: > Czy jest jakiś narzut gdy mam tablicę miliona intów a dla odmiany > tablicę miliona Integerów? Sprawdziłem przy przydzielaniu tablicy intów i Integerów ile wynosi czas - nie ma różnić. Przy czym, co ciekawe, czas przydzielania zależy od rozmiaru tablicy; Małe obiekty przydzielany są błyskawicznie, znacznie szybciej niż w takim C++, za to duże długo, między innymi musi czyścić pamięć, ale chyba nie tylko z tego powodu.
Technical Details
Message-ID:
<mo7p89$3dp$1@node1.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<mo7np0$gd4$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.lang.java Subject: Re: Tablica int a tablica Integerów Date: Thu, 16 Jul 2015 10:16:09 +0200 Organization: ATMAN - ATM S.A. Lines: 10 Message-ID: <mo7p89$3dp$1@node1.news.atman.pl> References: <mo7np0$gd4$1@node2.news.atman.pl> NNTP-Posting-Host: 91.239.205.105 Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1437034569 3513 91.239.205.105 (16 Jul 2015 08:16:09 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Thu, 16 Jul 2015 08:16:09 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <mo7np0$gd4$1@node2.news.atman.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit