This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Build Hermes off of static_h branch. | |
# 2. Run these commands: | |
# Static Hermes | |
build/bin/shermes -strict -parse-ts -finline -O -typed main.ts | |
./a.out | |
# BENCHMARK: 50000 iterations took 12818.000ms | |
# Hermes | |
build/bin/hermes -O -finline -parse-ts main.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {withAppBuildGradle} = require('@expo/config-plugins') | |
/** | |
* A Config Plugin to disable bundle compression in Android build.gradle. | |
* This makes the Android app start faster - in our tests by 400ms! | |
* @param {import('@expo/config-plugins').ConfigPlugin} config | |
* @returns {import('@expo/config-plugins').ConfigPlugin} | |
*/ | |
module.exports = function withNoBundleCompression(config) { | |
return withAppBuildGradle(config, androidConfig => { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-10-17 17:47:28.443 24007-24540 AudioManager com.expensify.chat.dev V playSoundEffect effectType: 0 | |
2023-10-17 17:47:28.444 24007-24540 AudioManager com.expensify.chat.dev V querySoundEffectsEnabled... | |
2023-10-17 17:47:28.455 24007-24007 CameraView com.expensify.chat.dev D Finding view 1909... | |
2023-10-17 17:47:28.455 24007-24007 CameraView com.expensify.chat.dev D Found view 1909! | |
2023-10-17 17:47:28.483 24007-24376 CameraView.takePhoto com.expensify.chat.dev I Taking photo... Options: {qualityPrioritization=speed, flash=off} | |
2023-10-17 17:47:28.487 24007-24376 CameraSession com.expensify.chat.dev I Photo capture 0/3 - preparing capture request (3968x2976)... | |
2023-10-17 17:47:28.499 24007-24376 CameraSession com.expensify.chat.dev I Photo capture 1/3 - starting capture... | |
2023-10-17 17:47:28.537 24007-24007 ViewRootImpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"devices": [ | |
"ultra-wide-angle-camera", | |
"wide-angle-camera", | |
"telephoto-camera" | |
], | |
"hasTorch": true, | |
"hasFlash": true, | |
"name": "Back Triple Camera", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jsi::Value | |
* - .asNumber() -> double | |
* - .asBoolean() -> bool | |
* - jsi::Value::undefined() | |
* - jsi::Value::null() | |
* - jsi::String | |
* - jsi::Symbol | |
* - jsi::Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VSCode Settings (hit `Cmd + ,` to open settings) | |
{ | |
"editor.smoothScrolling": true, | |
"editor.fontSize": 16, | |
"editor.fontFamily": "Fira Mono, Consolas, 'Courier New', monospace", | |
"editor.wordWrap": "on", | |
"editor.tabCompletion": "on", | |
"explorer.openEditors.visible": 0, | |
"explorer.autoReveal": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns a reversed copy of the given Array | |
*/ | |
export function fastReverse<T>(arr: T[]): T[] { | |
const result = new Array<T>(arr.length); | |
for (let i = 0; i < arr.length; i++) { | |
result[i] = arr[arr.length - 1 - i]; | |
} | |
return result; | |
}; |
NewerOlder