perfolation-unit


License

License

MIT
Categories

Categories

Native Development Tools
GroupId

GroupId

com.outr
ArtifactId

ArtifactId

perfolation-unit_native0.3_2.11
Last Version

Last Version

1.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

perfolation-unit
perfolation-unit
Project URL

Project URL

https://github.com/outr/perfolation
Project Organization

Project Organization

com.outr
Source Code Management

Source Code Management

https://github.com/outr/perfolation

Download perfolation-unit_native0.3_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.outr/perfolation-unit_native0.3_2.11/ -->
<dependency>
    <groupId>com.outr</groupId>
    <artifactId>perfolation-unit_native0.3_2.11</artifactId>
    <version>1.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.outr/perfolation-unit_native0.3_2.11/
implementation 'com.outr:perfolation-unit_native0.3_2.11:1.1.5'
// https://jarcasting.com/artifacts/com.outr/perfolation-unit_native0.3_2.11/
implementation ("com.outr:perfolation-unit_native0.3_2.11:1.1.5")
'com.outr:perfolation-unit_native0.3_2.11:jar:1.1.5'
<dependency org="com.outr" name="perfolation-unit_native0.3_2.11" rev="1.1.5">
  <artifact name="perfolation-unit_native0.3_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.outr', module='perfolation-unit_native0.3_2.11', version='1.1.5')
)
libraryDependencies += "com.outr" % "perfolation-unit_native0.3_2.11" % "1.1.5"
[com.outr/perfolation-unit_native0.3_2.11 "1.1.5"]

Dependencies

compile (7)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
com.outr : perfolation_native0.3_2.11 jar 1.1.5
org.scala-native : nativelib_native0.3_2.11 jar 0.3.8
org.scala-native : javalib_native0.3_2.11 jar 0.3.8
org.scala-native : auxlib_native0.3_2.11 jar 0.3.8
org.scala-native : scalalib_native0.3_2.11 jar 0.3.8
org.scala-native : test-interface_native0.3_2.11 jar 0.3.9

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_native0.3_2.11 jar 3.1.0-SNAP13

Project Modules

There are no modules declared in this project.

perfolation

Build Status Gitter Maven Central Latest version

Performance focused interpolation

Based on the original work of Dmitry Komanov (https://medium.com/@dkomanov/scala-string-interpolation-performance-21dc85e83afd).

Note: the current version of the interpolation Macro is a complete rip-off of fast-string-interpolator as their performance is superior, but they don't currently support Scala.js or Scala Native.

What is it?

As shown in the article by Dmitry Komanov, Scala's s"" and f"" interpolation are incredibly slow. This is an effort make String interpolation as fast as it should be with the additional features of type-safe formatting with code-completion.

Main Features

String interpolation

Original:

s"Interpolation of $string"

Better:

p"Interpolation of $string"

Type-safe alternatives to String format

Original:

f"Time: $timeInMillis%tT, Date: $timeInMillis%tD"

Better:

p"Time: ${timeInMillis.t.T}, Date: ${timeInMillis.t.D}"

Getting Started

Support for Scala (2.11, 2.12, 2.13, 3.0.0-M3), Scala.js (2.11, 2.12, 2.13, 3.0.0-M3) and ScalaNative (2.11, 2.12, 2.13)

SBT Dependencies:

libraryDependencies += "com.outr" %%% "perfolation" % "1.0.4"

Usage:

Simply import perfolation._ and start using:

import perfolation._

val greeting = "Hello, World!"
val time = System.currentTimeMillis()

println(p"$greeting @ ${time.t.T}")
com.outr

OUTR Technologies

Versions

Version
1.1.5