1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

perf: use fast calls for microtask ops (#26236)

Updates deno_core to 0.312.0
This commit is contained in:
Divy Srivastava 2024-10-14 18:01:51 +05:30 committed by GitHub
parent 3eda179220
commit dfbf03eee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 11 deletions

12
Cargo.lock generated
View file

@ -1422,9 +1422,9 @@ dependencies = [
[[package]] [[package]]
name = "deno_core" name = "deno_core"
version = "0.311.0" version = "0.312.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e09bd55da542fa1fde753aff617c355b5d782e763ab2a19e4371a56d7844cac" checksum = "ed5b20008c84715322782af2f94ff7ebc34eb50294ae098daf36b63a5b9bdd24"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bincode", "bincode",
@ -1920,9 +1920,9 @@ dependencies = [
[[package]] [[package]]
name = "deno_ops" name = "deno_ops"
version = "0.187.0" version = "0.188.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e040fd4def8a67538fe38c9955fd970efc9f44284bd69d44f8992a456afd665d" checksum = "ba1c7a8d9169e23de729000d6903dd0dee39e521e226d1ffbb9c5336665afae6"
dependencies = [ dependencies = [
"proc-macro-rules", "proc-macro-rules",
"proc-macro2", "proc-macro2",
@ -6171,9 +6171,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_v8" name = "serde_v8"
version = "0.220.0" version = "0.221.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e7a65d91d79acc82aa229aeb084f4a39bda269069bc1520df40f679495388e4" checksum = "3ca142cf34468e22063560302e6cc5e45f48e95a0dd25b3e22d6c32c32251135"
dependencies = [ dependencies = [
"num-bigint", "num-bigint",
"serde", "serde",

View file

@ -46,7 +46,7 @@ repository = "https://github.com/denoland/deno"
[workspace.dependencies] [workspace.dependencies]
deno_ast = { version = "=0.42.2", features = ["transpiling"] } deno_ast = { version = "=0.42.2", features = ["transpiling"] }
deno_core = { version = "0.311.0" } deno_core = { version = "0.312.0" }
deno_bench_util = { version = "0.165.0", path = "./bench_util" } deno_bench_util = { version = "0.165.0", path = "./bench_util" }
deno_lockfile = "=0.23.1" deno_lockfile = "=0.23.1"

View file

@ -277,7 +277,7 @@ pub fn write_file_2<T: AsRef<[u8]>>(
/// Similar to `std::fs::canonicalize()` but strips UNC prefixes on Windows. /// Similar to `std::fs::canonicalize()` but strips UNC prefixes on Windows.
pub fn canonicalize_path(path: &Path) -> Result<PathBuf, Error> { pub fn canonicalize_path(path: &Path) -> Result<PathBuf, Error> {
Ok(deno_core::strip_unc_prefix(path.canonicalize()?)) Ok(deno_path_util::strip_unc_prefix(path.canonicalize()?))
} }
/// Canonicalizes a path which might be non-existent by going up the /// Canonicalizes a path which might be non-existent by going up the

View file

@ -929,7 +929,7 @@ fn exists(path: &Path) -> bool {
} }
fn realpath(path: &Path) -> FsResult<PathBuf> { fn realpath(path: &Path) -> FsResult<PathBuf> {
Ok(deno_core::strip_unc_prefix(path.canonicalize()?)) Ok(deno_path_util::strip_unc_prefix(path.canonicalize()?))
} }
fn read_dir(path: &Path) -> FsResult<Vec<FsDirEntry>> { fn read_dir(path: &Path) -> FsResult<Vec<FsDirEntry>> {

View file

@ -295,7 +295,7 @@ where
let path = ensure_read_permission::<P>(state, &path)?; let path = ensure_read_permission::<P>(state, &path)?;
let fs = state.borrow::<FileSystemRc>(); let fs = state.borrow::<FileSystemRc>();
let canonicalized_path = let canonicalized_path =
deno_core::strip_unc_prefix(fs.realpath_sync(&path)?); deno_path_util::strip_unc_prefix(fs.realpath_sync(&path)?);
Ok(canonicalized_path.to_string_lossy().into_owned()) Ok(canonicalized_path.to_string_lossy().into_owned())
} }

View file

@ -52,7 +52,7 @@ where
let path = ensure_read_permission::<P>(state, &path)?; let path = ensure_read_permission::<P>(state, &path)?;
let fs = state.borrow::<FileSystemRc>(); let fs = state.borrow::<FileSystemRc>();
let canonicalized_path = let canonicalized_path =
deno_core::strip_unc_prefix(fs.realpath_sync(&path)?); deno_path_util::strip_unc_prefix(fs.realpath_sync(&path)?);
Url::from_file_path(canonicalized_path) Url::from_file_path(canonicalized_path)
.map_err(|e| generic_error(format!("URL from Path-String: {:#?}", e)))? .map_err(|e| generic_error(format!("URL from Path-String: {:#?}", e)))?
}; };