Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
7b6ad52a
Commit
7b6ad52a
authored
Jul 13, 2017
by
Philip ABBET
Browse files
Optimization: no unnecessary data unpacking/re-packing
parent
d4f04654
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/execution.py
View file @
7b6ad52a
...
...
@@ -291,7 +291,7 @@ class Executor(object):
db
=
self
.
databases
[
details
[
'database'
]]
dataformat_name
=
db
.
set
(
details
[
'protocol'
],
details
[
'set'
])[
'outputs'
][
details
[
'output'
]]
input
=
inputs
.
RemoteInput
(
name
,
db
.
dataformats
[
dataformat_name
],
self
.
db_socket
)
input
=
inputs
.
RemoteInput
(
name
,
db
.
dataformats
[
dataformat_name
],
self
.
db_socket
,
unpack
=
False
)
# Synchronization bits
group
=
self
.
input_list
.
group
(
details
[
'channel'
])
...
...
@@ -315,11 +315,13 @@ class Executor(object):
prefix
=
self
.
prefix
,
force_start_index
=
start_index
,
force_end_index
=
end_index
,
unpack
=
False
,
)
else
:
status
=
data_source
.
setup
(
filename
=
os
.
path
.
join
(
self
.
cache
,
details
[
'path'
]
+
'.data'
),
prefix
=
self
.
prefix
,
unpack
=
False
,
)
if
not
status
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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