Skip to content

Commit

Permalink
FEAT: using compose instead of slower join
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 29, 2022
1 parent c0454bf commit 1c00048
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mezz/sys-ports.reb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ make-port*: func [
dir?/check spec [spec: dirize spec 'dir]
true ['file]
]
spec: join [ref:] spec
spec: compose [ref: (spec)]
]
url? spec [
spec: repend decode-url spec [to set-word! 'ref spec]
Expand Down Expand Up @@ -65,6 +65,9 @@ make-port*: func [

; Create the port with the correct scheme spec:
port: make system/standard/port []
; prin "spec: " probe spec
; prin "scheme/spec: " probe scheme/spec
; prin "system/standard/port-spec-head: " probe system/standard/port-spec-head
port/spec: make any [scheme/spec system/standard/port-spec-head] spec
port/spec/scheme: name
port/scheme: scheme
Expand Down Expand Up @@ -93,6 +96,8 @@ url-parser: make object! [
out: make block! 14
value: none

probe system/catalog/bitsets

;-- Basic Character Sets
digit: system/catalog/bitsets/numeric
alpha: system/catalog/bitsets/alpha
Expand Down

0 comments on commit 1c00048

Please sign in to comment.