mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
update license and make the default buffer block size a megabyte rather than a measly 4k
This commit is contained in:
parent
be4420ae62
commit
8493881362
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2013 Incremental IP Limited
|
||||
Copyright (c) 2013-2014 Incremental IP Limited
|
||||
Copyright (c) 2014 Kevin Martin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
|
@ -52,7 +52,8 @@ controlling how the file is read:
|
||||
file formats and spelling mistakes.
|
||||
|
||||
+ `buffer_size` controls the size of the blocks the file is read in. The
|
||||
default is 4096, which is what `pagesize` says on my system.
|
||||
default is 1MB. It used to be 4096 bytes which is what `pagesize` says on
|
||||
my system, but that seems kind of small.
|
||||
|
||||
`csv.openstring` works exactly like `csv.open` except the first argument
|
||||
is the contents of the csv file. In this case `buffer_size` is set to
|
||||
|
@ -10,11 +10,11 @@
|
||||
-- Of course, for such a simple format, CSV is horribly complicated, so it
|
||||
-- likely gets something wrong.
|
||||
|
||||
-- (c) Copyright 2013 Incremental IP Limited.
|
||||
-- (c) Copyright 2013-2014 Incremental IP Limited.
|
||||
-- (c) Copyright 2014 Kevin Martin
|
||||
-- Available under the MIT licence. See LICENSE for more information.
|
||||
|
||||
local DEFAULT_BUFFER_BLOCK_SIZE = 4096
|
||||
local DEFAULT_BUFFER_BLOCK_SIZE = 1024 * 1024
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user