Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.performance
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
wendelin.performance
Commits
9991b5a6
Commit
9991b5a6
authored
Oct 14, 2015
by
Douglas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Old things removed from test server code
parent
1bf23c12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
performance_test_server.py
performance_test_server.py
+3
-7
No files found.
performance_test_server.py
View file @
9991b5a6
...
...
@@ -108,19 +108,15 @@ def get_field_names_and_schema():
np
.
dtype
,
[
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'i8'
,
'f8'
,
'i8'
,
'i8'
,
'f8'
,
'f8'
,
'f8'
,
# 'a50', 'a50', 'a50', 'a50']
'f8'
,
'f8'
,
'f8'
,
'f8'
]
'a50'
,
'a50'
,
'a50'
,
'a50'
]
)
})
return
field_names
,
array_schema
def
create_zbigarray
(
memory_size
=
None
,
dtype
=
None
):
'''Create a ZBigArray with memory_size bytes with the defined dtype.'''
# if memory_size and dtype:
element_number
=
memory_size
//
dtype
.
itemsize
return
ZBigArray
((
element_number
,),
dtype
)
# else:
# raise Exception('You need to provide memory_size and dtype, %s - %s' % (memory_size, dtype))
def
set_zblock_format
(
zblk_format
):
'''Set the array to write with the provide zblock format.
...
...
@@ -171,7 +167,7 @@ def populate_array(root, big_array, big_index, schema):
transaction
.
commit
()
return
{
'messages'
:
message_list
,
'columns'
:
columns
}
def
filter_item
(
item
,
normalize
=
Tru
e
):
def
filter_item
(
item
,
normalize
=
Fals
e
):
'''Typecast item to numeric values if it is a: DateTime or falsy to help
pandas/numpy deal with them. If normalize is True it will typecast strings
and unicodes to floats too, thus reducing that size dramatically.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment