English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

kemi  (statz) Főfasz
#2, Főfasz (2970)
839 | #26d5 | ^ | Idézet | Sun, 28 Jul 2013 13:12:13 +02
78.131.*.* Linux x86 Google Chrome Hungary *.pool.hdsnet.hu
Csak kíváncsiságból megnéztem a te megoldásodat C-ben:
test1.c
#include <stdlib.h>

long int i, l;
const long int faszom[2] = {58, 63};

void main() {
    for (i = 0; i < 1000000000; i++) {
	l = faszom[rand() & 1 != 0];
    }
}


test2.c
#include <stdlib.h>

long int i, l;

void main() {
    for (i = 0; i < 1000000000; i++) {
	l = rand() & 1 != 0 ? 63 : 58;
    }
}

kemi242@linuxmint ~ $ time ./test1

real	0m18.352s
user	0m18.344s
sys	0m0.004s
kemi242@linuxmint ~ $ time ./test2

real	0m17.864s
user	0m17.848s
sys	0m0.008s

C-ben lényegesen gyorsabb, de valóban úgy van, ahogy saxus mondja. Ha át akarod látni, netán módosítani akarod, mindig meg kell keresni annak a tömbnek a deklarációját.
Legközelebb hozok egy rendes cipőt lézerezéshez, mert még mindig qrwára fáj a lábam. :P


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!