Skip to content

Commit

Permalink
🍞
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jan 28, 2022
1 parent c989641 commit b0376d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/optimizer/core/src/collector.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::{BTreeMap, HashMap, HashSet};
use std::collections::{HashMap, HashSet};

use swc_atoms::{js_word, JsWord};
use swc_common::{BytePos, Span, SyntaxContext};
Expand Down Expand Up @@ -41,8 +41,8 @@ pub struct Import {
}

pub struct GlobalCollect {
pub imports: BTreeMap<Id, Import>,
pub exports: BTreeMap<Id, Option<JsWord>>,
pub imports: HashMap<Id, Import>,
pub exports: HashMap<Id, Option<JsWord>>,
pub root: HashMap<Id, Span>,

rev_imports: HashMap<(JsWord, JsWord), Id>,
Expand All @@ -51,8 +51,8 @@ pub struct GlobalCollect {

pub fn global_collect(module: &ast::Module) -> GlobalCollect {
let mut collect = GlobalCollect {
imports: BTreeMap::new(),
exports: BTreeMap::new(),
imports: HashMap::new(),
exports: HashMap::new(),

root: HashMap::new(),
rev_imports: HashMap::new(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const d = onRender$(()=>console.log('thing'));
============================= test.js ==

import * as qwik from "@builder.io/qwik";
import { onRender } from "@builder.io/qwik";
import { component } from "@builder.io/qwik";
import { onRender } from "@builder.io/qwik";
export const Greeter = component(qwik.qrl(()=>import("./h_test_greeter_component")
, "Greeter_component"));
onRender(qwik.qrl(()=>import("./h_test_d_onrender")
Expand Down

1 comment on commit b0376d6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: b0376d6 Previous: fce5ca7 Ratio
transform_todo_app 1737451 ns/iter (± 10725) 1734789 ns/iter (± 8900) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.