electron/spec/fixtures/module
Thiago de Arruda 6ff111a141 perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953)
* Don't use JSON to send the result of `ipcRenderer.sendSync`.

- Change the return type of AtomViewHostMsg_Message_Sync from `base::string16`
  to `base::ListValue`
- Adjust lib/browser/api/web-contents.js and /lib/renderer/api/ipc-renderer.js
  to wrap/unwrap return values to/from array, instead of
  serializing/deserializing JSON.

This change can greatly improve `ipcRenderer.sendSync` calls where the return
value contains Buffer instances, because those are converted to Array before
being serialized to JSON(which has no efficient way of representing byte
arrays).

A simple benchmark where remote.require('fs') was used to read a 16mb file got
at least 5x faster, not to mention it used a lot less memory.  This difference
tends increases with larger buffers.

* Don't base64 encode Buffers

* Don't allocate V8ValueConverter on the heap

* Replace hidden global.sandbox with NodeBindings::IsInitialized()

* Refactoring: check NodeBindings::IsInitialized() in V8ValueConverter

* Refactor problematic test to make it more reliable

* Add tests for NaN and Infinity
2018-06-13 17:38:31 +10:00
..
answer.js
asar.js
call.js
check-arguments.js Add ability to set arbitrary arguments in a renderer process (#11850) 2018-02-12 11:54:31 -06:00
circular.js
class.js
crash.js
create_socket.js
declare-buffer.js
declare-global.js
declare-process.js
delete-buffer.js
error-properties.js Add spec for remote setter not surfacing error 2017-04-03 09:10:46 -07:00
exception.js handle remote exception (#12694) 2018-04-24 08:40:19 -04:00
export-function-with-properties.js
fork_ping.js
function-with-args.js
function-with-missing-properties.js
function-with-properties.js
function.js
hello-child.js Add test for #9387 2017-05-16 09:07:41 -03:00
hello.js Add test for #9387 2017-05-16 09:07:41 -03:00
id.js
inspector-binding.js add basic inspector module test 2017-11-24 10:58:53 +09:00
locale-compare.js
no-asar.js
no-prototype.js
original-fs.js
ping.js
preload-inject-ipc.js
preload-ipc.js
preload-node-off-wrapper.js
preload-node-off.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
preload-pdf-loaded-in-nested-subframe.js Fix issues in the file for the tests. 2017-11-13 21:13:19 +01:00
preload-pdf-loaded-in-subframe.js Fix issues in the file for the tests. 2017-11-13 21:13:19 +01:00
preload-pdf-loaded.js 👕 Remove lint 2017-06-28 13:40:28 -07:00
preload-required-module.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
preload-sandbox.js Exposing process.env status (#12166) 2018-03-14 12:01:40 +09:00
preload-sandboxæø åü.js Preload doesn't load in sandboxed render if preload path contains special chars (#12037) 2018-03-07 11:40:00 -05:00
preload-set-global.js Add explicit spec for removing preload from webview 2017-05-17 13:47:00 -07:00
preload-webview.js
preload.js Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
print_name.js perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953) 2018-06-13 17:38:31 +10:00
process-stdout.js
process_args.js
promise.js
property.js
rejected-promise.js
remote-object-set.js Add spec for remote setter with remote object 2017-04-04 11:18:16 -07:00
remote-static.js
run-as-node.js
runas.js
send-later.js
set-global-preload-1.js Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
set-global-preload-2.js Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
set-global-preload-3.js Add a SessionPreferences to manage session related data 2017-12-05 15:59:15 +09:00
set-global.js Add ability to set global preload scripts 2017-12-05 11:35:27 +09:00
set-immediate.js
test.coffee
to-string-non-function.js
unhandled-rejection.js