Új hozzászólás Aktív témák
-
F34R
nagyúr
válasz lionhearted #6888 üzenetére
MoarD
-
F34R
nagyúr
válasz Apollyon #6917 üzenetére
BSD hardver szinten ugy all ahogy, egy csomo eszkozt nem ismer, a fajlrendszere retek, meg ha azt is mondjak hogy a UFS a legjobban turi a toredezest es egyebb mas dolgot. A szipi szupi ZFS-t meg fel se hozzuk.
Aztan ott van az is hogy eleri oket is a beteg developerek keze. Az en ~15 eves backup gepemre mondjuk jo(#6918) colomb2
mksh simple as fuck. viszont ha csecse, fancy kell ott a fish is. Elobbit akkor preferald ha meg egyszerubb shell kell mint a bash volt.
[ Szerkesztve ]
-
F34R
nagyúr
válasz spammer #6926 üzenetére
Ez hulyeseg, en mindehol ugyanazt a szinsemat akarom hasznalni. Sot, 2-3 nal tobb sablon-t nem is tundek hasznali pedig van millio meg egy osszeallitas. es valaki nem az urxvt-t hasznalja, akkor azt hogy tudod megcsinalni? sehogy mert azok a terminal emulatorok nem az Xresources-re hanem a sajat konfigfajlukra hagyatkoznak.
-
F34R
nagyúr
o do that, shells fork the command in a subshell and read its output through a pipe or socketpair. You see a lot of variation here. On a 50MiB file here, I can see for instance bash being 6 times as slow as ksh93 but slightly faster than zsh and twice as fast as yash.
The main reason for bash being slow is that it reads from the pipe 128 bytes at a time (while other shells read 4KiB or 8KiB at a time) and is penalised by the system call overhead.
zsh needs to do some post-processing to escape NUL bytes (other shells break on NUL bytes), and yash does even more heavy-duty processing by parsing multi-byte characters.
All shells need to strip the trailing newline characters which they may be doing more or less efficiently.
Some may want to handle NUL bytes more gracefully than others and check for their presence.
Then once you have that big variable in memory, any manipulation on it generally involves allocating more memory and coping data across.
Here, you're passing (were intending to pass) the content of the variable to echo.
Luckily, echo is built-in in your shell, otherwise the execution would have likely failed with an arg list too long error. Even then, building the argument list array will possibly involve copying the content of the variable.
The other main problem in your command substitution approach is that you're invoking the split+glob operator (by forgetting to quote the variable).
For that, shells need to treat the string as a string of characters (though some shells don't and are buggy in that regard) so in UTF-8 locales, that means parsing UTF-8 sequences (if not done already like yash does), look for $IFS characters in the string. If $IFS contains space, tab or newline (which is the case by default), the algorithm is even more complex and expensive. Then, the words resulting from that splitting need to be allocated and copied.
The glob part will be even more expensive. If any of those words contain glob characters (*, ?, [), then the shell will have to read the content of some directories and do some expensive pattern matching (bash's implementation for instance is notoriously very bad at that).
Nem volt hulyeseg azt mondani probald ki a mksh-t. A fish meg a zsh-tol is lassabb.
Az i valtozo a scriptben pl egy nagy eroforras, ezt lassan fogja neked futtatni.
[ Szerkesztve ]
-
F34R
nagyúr
Betyar, gondolom jo kis kajcsi volt utanna
(#7102) tvamos
The Raspberry Pi 2 has a quad-core 900MHz CPU, the Pi 3 a quad-core 1.2GHz one. Both have 1GB RAM and both use a fourth-generation VideoCore CPU.
Achitekturat valtottak, megemeltek az orajelet mind CPU mind GPU tekinteteben igy erosebb lett egy magra levetitve is. Medialejatszasban elenyeszo, annyi hogy itt bovult a 4k-val de nem valoszinu hogy ertelmes anyagot talasz hozza amit egyebkent is nyogdosve vinne.(#7104) bob.zxr
Ne tagadd, hogy te vota'
-
-
F34R
nagyúr
Kozben erdekelt a tema es kicsit utanna neztem, szoval az amdgpu egy branch ala veszi a nyilt es zart kodu driveret, nemes egyszeruseggel. Ez viszi tovabb az uj catalyst vonalat, es az ati/radeon drivert is.
Viszont nem elegge zokkenomentes a fejlesztes, mondhatni egy kalap .... a teljesitmeny.
Akkor is a fele a teljesitmeny ha be van kapcsolva a powerplay kernel line-ba, mint a regi fglrx-eke, vagy akar a Windowsos drivereke. (pedig az sem nagy szam )Reddit post alapjan is a R300-as szeriahoz is meg a regit erdemes hasznalni.
-
F34R
nagyúr
Soccer ? no way inkabb valami UTOS sport
Új hozzászólás Aktív témák
- Fallout 4
- Renault, Dacia topik
- Milyen asztali (teljes vagy fél-) gépet vegyek?
- Steam, GOG, Epic Store, Humble Store, Xbox PC Game Pass, Origin Access, uPlay+, Apple Arcade felhasználók barátságos izgulós topikja
- Milyen okostelefont vegyek?
- Vicces képek
- Székesfehérvár és környéke adok-veszek-beszélgetek
- A fociról könnyedén, egy baráti társaságban
- EA Sports WRC '23
- Villanyszerelés
- További aktív témák...