mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
runtime: nr_cpus()
This commit is contained in:
@ -35,7 +35,7 @@ const (
|
||||
)
|
||||
|
||||
fn new_hashmap(planned_nr_items int) hashmap {
|
||||
mut cap := planned_nr_items * 3
|
||||
mut cap := planned_nr_items * 5
|
||||
if cap < min_cap {
|
||||
cap = min_cap
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ pub fn (m &map) keys() []string {
|
||||
}
|
||||
|
||||
fn (m map) get(key string, out voidptr) bool {
|
||||
//println('g')
|
||||
println('g')
|
||||
if m.root == 0 {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user