Commit Graph

17 Commits (33b5afa893f32e4033d02aec1f771a738e6ce760)

Author SHA1 Message Date
Alexander Medvednikov 5946f67328 final switch => match 2019-10-27 12:38:50 +03:00
joe-conigliaro 59378dce46 compiler/vlib: replace substr/left/right with `[start..end]` everywhere 2019-10-27 10:03:15 +03:00
Delyan Angelov 2d05c906d5 base64: some optimizations
* Add a test for the base64 encoding/decoding of long strings (i.e. mainly memory allocation).

* Make vlib/encoding/base64/base64_memory_test.v resemble more test.v from https://github.com/kostya/benchmarks .

* base64: some optimizations, also add base64.encode_in_buffer and base64.decode_in_buffer .

* Fix tests passing static strings.

* Reduce time needed for base64_memory_test.v .

* Optimize encoding.base64.Index access too (it is static), which speeds up decoding.
2019-10-26 18:20:36 +03:00
Alexander Medvednikov ed93185cb7 fix base64 test 2019-09-28 22:23:22 +03:00
joe-conigliaro d4bae356ba compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors 2019-09-25 17:59:50 +03:00
joe-conigliaro 8974aa4513 compiler/vlib: change `_ :=` to `_ =` and disable `_ :=` 2019-09-25 15:10:45 +03:00
joe-conigliaro f187c35fb2 vlib: inline certain functions 2019-09-18 15:45:32 +03:00
joe-conigliaro 9c9e6290a6 remove unnecessary mut argument (#2016) 2019-09-17 01:09:19 +03:00
joe-conigliaro b4d033ff54 compiler: generalize mod dag & use for sorting structs also 2019-09-03 19:11:21 +03:00
Joe Conigliaro 1f67d9edd8 fix bugs breaking tests 2019-09-03 15:21:52 +03:00
Joe Conigliaro e5ebb83bd9 add test for writer 2019-08-17 17:43:43 +03:00
joe-conigliaro 1ba701e036 encoding.csv: add write support 2019-08-17 15:51:20 +03:00
joe-conigliaro 7b48f7ac9e encoding.csv module 2019-08-14 09:45:56 +03:00
Alexander Medvednikov 34e0b164eb make function arguments immutable by default 2019-08-07 08:59:00 +02:00
Alexander Medvednikov c35adbea91 vfmt fixes 2019-07-17 21:00:39 +02:00
joe-conigliaro a7529b7b05 sha1 implementation + helper funcs 2019-07-15 17:49:01 +02:00
joe-conigliaro 8a2d25247f submodules 2019-07-07 01:22:47 +02:00