Re: [Vala] How to check if string is empty



Hi:

El 17/01/17 a las 10:24, Ulink escribió:
But I think str.length==0 and str=="" are no high performance solutions,
especially for big/long strings.
That's true for the first one, but the second is as fast as str[0] == 0,
because as soon as one byte doesn't fit, the function ends.

-- 
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]