julia 1.10.10operations . . . . . . . . . . . . . . . . . . . . . . . . . 434 34.16 Consider using views for slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 34.17 Copying data is not always bad using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9operations . . . . . . . . . . . . . . . . . . . . . . . . . 434 34.16 Consider using views for slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 34.17 Copying data is not always bad using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4certain intermediate broadcasts . . . . . . . . . . . . . . . . . 464 35.18 Consider using views for slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 35.19 Copying data is not always bad using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationcertain intermediate broadcasts . . . . . . . . . . . . . . . . . 464 35.18 Consider using views for slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 35.19 Copying data is not always bad using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notescertain intermediate broadcasts . . . . . . . . . . . . . . . . . 464 35.18 Consider using views for slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 35.19 Copying data is not always bad using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVusing the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString values-as-parameters) – Memory management and arrays ∗ Pre-allocate outputs ∗ Consider using views for slices 454CHAPTER 35. PERFORMANCE TIPS 455 ∗ Consider StaticArrays.jl for small fixed-size vector/matrix0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString values-as-parameters) – Memory management and arrays ∗ Pre-allocate outputs ∗ Consider using views for slices 455CHAPTER 35. PERFORMANCE TIPS 456 ∗ Consider StaticArrays.jl for small fixed-size vector/matrix0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString values-as-parameters) – Memory management and arrays ∗ Pre-allocate outputs ∗ Consider using views for slices 454CHAPTER 35. PERFORMANCE TIPS 455 ∗ Consider StaticArrays.jl for small fixed-size vector/matrix0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString values-as-parameters) – Memory management and arrays ∗ Pre-allocate outputs ∗ Consider using views for slices 454CHAPTER 35. PERFORMANCE TIPS 455 ∗ Consider StaticArrays.jl for small fixed-size vector/matrix0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long string" "long string" julia> substr = SubString(str "long" julia> typeof(substr) SubString{String} julia> @views typeof(str[1:4]) # @views converts slices to SubStrings SubString{String} Several standard functions like chop, chomp or strip return a SubString values-as-parameters) – Memory management and arrays ∗ Pre-allocate outputs ∗ Consider using views for slices 454CHAPTER 35. PERFORMANCE TIPS 455 ∗ Consider StaticArrays.jl for small fixed-size vector/matrix0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 11 条
- 1
- 2













